import {post,get} from '../utils/request'
// 封装登录接口

// 列表
const List=(data:any)=>{
    return get('api/visit/visituser/list',data)
}

// 批删
const delAll=(data:any)=>{
  return get('api/visit/visituser/del',data)
}

// 审核（支持批量审核）
const isgree=(data:any)=>{
  return get('api/visit/visituser/isgree',data)
}
// 详情
const details=(data:any)=>{
  return get('api/visit/visituser/show',data)
}

// 部门级联框
const cascade=()=>{
  return get('api/visit/department/list')
}

// 图片上传
const upload2=(data:any)=>{
  return post('api/visit/upload',data)
}

// 添加
const addll=(data:any)=>{
  return post('api/visit/visituser/add',data)
}

// 导出
const viexport=(data:any)=>{
  return get('api/visit/visituser/export',data)
}

export {List,delAll,isgree,details,cascade,upload2,addll,viexport}